package com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 电享生活商户端APP 服务订单表
 * </p>
 *
 * @author lcc
 * @since 2020-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DxshAppServiceOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 支付宝交易号
     */
    private String payNo;

    /**
     * 微信支付交易号
     */
    private String transactionId;

    /**
     * 1：支付宝支付，2.微信支付
     */
    private Integer payWay;

    /**
     * 服务ID
     */
    private Integer serviceId;

    /**
     * 订单类型：1：增值服务
     */
    private Integer orderType;

    /**
     * 状态：0未支付 1已支付
     */
    private Integer status;

    /**
     * 数量
     */
    private Integer serviceNum;

    /**
     * 总价
     */
    private BigDecimal totalPrice;

    /**
     * 用户id
     */
    private Integer bmsUserId;

    /**
     * 手机
     */
    private String phone;

    /**
     * 创建时间
     */
    private LocalDateTime newTime;


    /**
     * 后台沟通时间
     */
    private LocalDateTime serveTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;

    /**
     * 是否删除 0未删除 1删除
     */
    private Integer isDelete;

    /**
     * 创建渠道，1：公众号，2：app，3：微信小程序，4：支付宝小程序
     */
    private Integer createWay;

    private Integer payStatus = 0;

    private Integer talkStatus = 0;

    private String serveBeginTime;

    private String serveEndTime;

    private Integer firstInfoStatus = 0;

    private Integer secondInfoStatus = 0;

    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String PAY_NO = "pay_no";

    public static final String TRANSACTION_ID = "transaction_id";

    public static final String PAY_WAY = "pay_way";

    public static final String SERVICE_ID = "service_id";

    public static final String ORDER_TYPE = "order_type";

    public static final String STATUS = "status";

    public static final String SERVICE_NUM = "service_num";

    public static final String TOTAL_PRICE = "total_price";

    public static final String BMS_USER_ID = "bms_user_id";

    public static final String PHONE = "phone";

    public static final String NEW_TIME = "new_time";

    public static final String SERVE_TIME = "serve_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String PAY_TIME = "pay_time";

    public static final String IS_DELETE = "is_delete";

    public static final String CREATE_WAY = "create_way";

    public static final String PAY_STATUS = "pay_status";

    public static final String TALK_STATUS = "talk_status";

    public static final String SERVE_BEGIN_TIME = "serve_begin_time";

    public static final String SERVE_END_TIME = "serve_end_time";

    public static final String FIRST_INFO_STATUS = "first_info_status";

    public static final String SECOND_INFO_STATUS = "second_info_status";
}
